package com.blockchain.front.service.security;

import com.blockchain.common.enums.JymmType;
import com.blockchain.framework.http.upload.PartFile;
import com.blockchain.framework.service.Service;
import com.blockchain.front.service.security.entity.BankCard;
import com.blockchain.front.service.security.entity.BankEntity;
import com.blockchain.front.service.security.entity.QbdzEntity;

/**
 * 安全中心
 * 
 */
public abstract interface SecurityManage extends Service {

	/**
	 * 描述：修改登录密码
	 * 
	 */
	public abstract void updateLogin(String oldpassword, String newpassword, String repassword) throws Throwable;
	
	/**
	 * 描述：修改交易密码
	 * 
	 */
	public abstract void updateJymm(String oldpassword, String newpassword, String repassword) throws Throwable;
	
	/**
	 * 描述:交易密码输入设置
	 * 
	 */
	public abstract void jymmSz(JymmType tpwdsetting,String paypassword) throws Throwable;
	
	/**
	 * 描述:查询交易密码输入设置
	 * 
	 */
	public abstract JymmType getjymmSz() throws Throwable;
	
	/**
	 *查询银行
	 * 
	 */
	public abstract BankEntity [] getBank() throws Throwable;
	
	/**
	 *添加银行卡
	 * 
	 */
	public abstract void addBank(String bq,int yhid,String sheng,String shi,String khzh,String kh,String jymm) throws Throwable;
	
	/**
	 *银行卡信息列表
	 * 
	 */
	public abstract BankCard[] bankList() throws Throwable;
	
	/**
	 * 更新银行卡信息
	 * @return 
	 * */
	public abstract boolean updateBankCard(int id,String sql,Object...params) throws Throwable;
	
	/**
	 *银行卡删除
	 * 
	 */
	public abstract void deleteBank(int id) throws Throwable;
	
	/**
	 * <dt>
	 * <dl>
	 * 描述：查询虚拟币信息（没分区）
	 * </dl>
	 */
	public abstract QbdzEntity[] getXlbxx() throws Throwable;
	
	/**
	 * <dt>
	 * <dl>
	 * 描述：查询虚拟币信息(是否正常转入)
	 * </dl>
	 */
	public abstract QbdzEntity[] getZrXlbxx() throws Throwable;
	
	/**
	 * <dt>
	 * <dl>
	 * 描述：查询虚拟币信息(是否正常转出)
	 * </dl>
	 */
	public abstract QbdzEntity[] getZcXlbxx() throws Throwable;
	
	/**
	 * <dt>
	 * <dl>
	 * 描述：查询虚拟币信息（有分区）
	 * </dl>
	 */
	public abstract QbdzEntity[] getXlb() throws Throwable;
	
	public abstract String getTb(int bid) throws Throwable;
	public abstract String getTbsc(int fqid) throws Throwable;
	/**
	 *图标转入
	 * 1:转入；2：转出
	 */
	public abstract String getTbZrzc(int bid,int type) throws Throwable;
	/**
	 *添加钱包地址
	 * 
	 */
	public abstract void addQbdz(String bq,int bid,String qbdz,String jymm) throws Throwable;
	/**
	 * <dt>
	 * <dl>
	 * 描述：查询虚拟币信息
	 * </dl>
	 */
	public abstract QbdzEntity[] qbdzList(int bid) throws Throwable;
	
	/**
	 *钱包地址删除
	 * 
	 */
	public abstract void deleteQbdz(int id) throws Throwable;
	
	/**
	 *高级实名认证
	 * 
	 */
	public abstract void add(PartFile z,PartFile f) throws Throwable;
	
	/**
	 *是否上传照片
	 * 
	 */
	public abstract int getZp()  throws Throwable;
	
	/**
	 *上传照片审核失败原因
	 * 
	 */
	public abstract String getYy()  throws Throwable;
	

	/**
	 * 更新用户交易密码2017年8月4日17:17:45
	 */
	public abstract void updateJymm(String password, int userId) throws Throwable;

}
